const https = require('https');
const fs = require('fs');

const options = {
  key: fs.readFileSync('./cert/1557605_www.learningrtc.cn.key'),
  cert: fs.readFileSync('./cert/1557605_www.learningrtc.cn.pem')
}

const app = https.createServer(options, (req, res) => {
  res.writeHead(200, {
    'Content-Type': 'text/plain'
  });
  res.end('HTTPS: Hello World!\n');
}).listen(443/*, '0.0.0.0'*/);
